package com.aaa.phone.service.noticeservice.impl;

import com.aaa.phone.dao.noticedao.NoticeDao;
import com.aaa.phone.service.noticeservice.NoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
/**
* @description: 手机端广告业务实现层
* @author: 王林林
* @create: 2018/12/15 9:11
**/
@Service
public class NoticeServiceImpl implements NoticeService {

    @Autowired
    private NoticeDao dao;

    /**
     * 根据noticeId是否有值获取所有的广告信息或单个广告信息
     * @param noticeId
     * @return
     */
    @Override
    public List<Map> getAllNotice(Integer noticeId) {
        return dao.getAllNotice(noticeId);
    }
}
